while True:
    try:
        number =int (input("请输入一个数字："))
    except KeyError:
        print("KeyError")
    except ValueError:
        print("ValueError")
    except KeyboardInterrupt:
        print("用户终止，退出程序")
        exit()
    except Exception as e:
        print("未知错误",e)
    
